<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子模型边框</title>
    <style>
        div {
            width: 300px;
            height: 200px;
            /* 边框的粗细 */
            border-width: 5px;
            /* 边框的样式 - solid 实线边框 dashed 虚线边框 dotted 电线边框 */
            border-style: solid;
            /* border-style: dashed;
            border-style: dotted; */
            background-color: gray;
            /* 边框的复合写法 */
            /* border: 5px solid pink; */
            border-top: 5px solid pink;
            border-bottom: 10px dashed purple;
        }
        /* 宽高200px,上边框红其余蓝 */
        /* div {
            height: 200px;
            width: 200px;
            border: 1px solid blue;
            border-top:1px solid red;
        } */
    </style>
</head>

<body>
    <div>
        
    </div>
</body>

</html>